import { Module } from 'vuex';
// 此处加上 `.ts` 后缀报错，具体原因不详
import { RegInfoState, RootStateTypes } from '/@/store/interface/index';

const RegInfoModule: Module<RegInfoState , RootStateTypes> = {
	namespaced: true,
	state: {
		reginfo:{
			isReg:false,
			uqkey:""
		}
	},
	mutations: {
		setRegInfo(state: any, data: object) {
			state.reginfo = data;
		},
	},
	actions: {
		async setRegInfo({ commit }, data: object) {
			commit('setRegInfo', data);
		},
	},
};

export default RegInfoModule;
